/*
 * Execution.h
 *
 *  Created on: 13.11.2011
 *      Author: centimo
 */

#ifndef TextMonitoring_H
#define TextMonitoring_H

#include <QtGui>
#include <QTextEdit>
#include <structs.h>
#include <textManipulation.h>
#include <QVector>







class TextMonitoring : public QObject
{
    Q_OBJECT

public:
    static const QSize resultSize;

    QTextEdit* resultField;

    TextMonitoring(QTextEdit* editFieldPointer);
    QVector<Change*>* getChangesVector();
    QVector<Change*>* changes;
    QVector<CursorPosition*>* cursorsVector;
    void sendEvent(eventsType eventType, int selectionStart, int selectionEnd);
    QString* allText;


public slots:


private:
    QTextEdit* editField;


};


#endif // Execution_H
